package com.preknow.lianxi;

public class bijiben {

    char color;
    int cpu;

    public bijiben(){
        this('红',1001);
    }

    public bijiben(char color, int cpu){
        this.color = '红';
        this.cpu = 1001;
    }

    public void xinix(){
        System.out.println(color+"-----"+cpu);
    }

    public static void main(String[] args) {

    }
}
class test12{
    public static void main(String[] args) {
        bijiben ff = new bijiben();
        ff.xinix();
    }
        }